package com.pllandxzx.dto;

import lombok.Getter;

/**
 * @BelongsProject: ssm-04.10
 * @BelongsPackage: com.xzx.dto
 * @Author: xuze🌟
 * @CreateTime: 2025-04-16 16:05
 * @Description: TODO
 * @Version: 1.0
 */
// 定义响应状态的枚举类型
@Getter
public enum ResponseStatus {
    SUCCESS(200, "成功"),
    FAILURE(500, "失败"),
    UNAUTHORIZED(403, "token已过期"),
    UN_LOGIN(401,"未登录"),
    NOT_FOUND(404, "未找到资源");

    private final int code;
    private final String message;

    ResponseStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
